<template>
  <div class="app-container">
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column v-for="col in columns" :key="col.prop" :prop="col.prop" :label="col.label" />
    </el-table>
  </div>
</template>

<script setup lang="ts">
import { ref, onMounted } from 'vue'
const tableData = ref([])
const columns = [
<#list fields as field>
  { prop: '${field.name}', label: '${field.comment}' },
</#list>
]

onMounted(() => {
  // TODO: 获取数据
})
</script> 